<template>
  <div>
    <div class="ph">
      <h3>普惠金融</h3>

      <ul>
        <li v-for="(v, i) in arr" :key="i">
          <img :src="v.img" alt="" />
          <p>{{ v.name }}</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import list from "@/api/link.js";
export default {
  data() {
    return {
      arr: [
        // {img:"./homes/h1.png",name:"小微贷款"},
        // {img:"./homes/h1.png",name:"农户快带"},
        // {img:"./homes/j1.png",name:"就是贷款"},
      ],
    };
  },
  mounted() {
    list("/list/lists").then((ok) => {
      let data = ok.data.arr;
      this.arr = data;
    });
  },
};
</script>

<style lang="less" scoped>
div {
  background-color: #ffffff;
}

.ph {
  margin: auto;
  width: 95%;
  height: 1.8rem;
  h3 {
    line-height: 0.5rem;
    font-size: 0.2rem;
    font-weight: 600;
  }
  ul {
    display: flex;
    width: 90%;
    margin: auto;
    justify-content: space-between;

    li {
      width: 33%;
      height: 0.9rem;
      font-size: 0.16rem;
      font-weight: 500;
      text-align: center;
      img {
        width: 0.7rem;
        height: 0.7rem;
        border-radius: 50%;
      }
    }
  }
}
</style>